<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_service_charge.js此处编写
 -->
 <template>
  <div>
      <view-grid
                 ref="grid"
                 :columns="columns"
                 :detail="detail"
                 :editFormFields="editFormFields"
                 :editFormFileds="editFormFields"
                 :editFormOptions="editFormOptions"
                 :searchFormFields="searchFormFields"
                 :searchFormFileds="searchFormFields"
                 :searchFormOptions="searchFormOptions"
                 :table="table"
                 :extend="extend">
      </view-grid>
  </div>
</template>

<script>
  import extend from "@/extension/Mall/v_member_recharge.js";
  import ViewGrid from "@/components/basic/ViewGrid.vue";
  var vueParam = {
      components: {
          ViewGrid
      },
      data() {
          return {
              table: {
                  key: 'id',
                  footer: "Foots",
                  cnName: '储值卡明细表',
                  name: 'V_member_total',
                  url: "/V_member_total/",
                  sortName: "createDate"
              },
              extend: extend,
              editFormFields: {},
              editFormOptions: [],
              searchFormFields:{"cardno":"","memberid":"","type_func":"","createDate":"","hoteldate":"","remark":"","BookingName":"","wxOrderNo":"","outRefundNos":"","refundOfTime":""},
              searchFormOptions: [
                    [{"title":"会员编号","field":"memberid","type":"like"},{"title":"卡号","field":"cardno","type":"like"},{"title":"操作时间","field":"createDate","type":"datetime"}],
                    [{"title":"操作人","field":"creator","type":"like"},{"title":"营业日期","field":"hoteldate","type":"datetime"},{"dataKey":"member_type_func","data":[],"title":"操作类型","field":"type_func","type":"select"}],
                    [{"title":"备注","field":"remark","type":"like"}],
                    ],
              columns: [
                    {field:'hoteldate',title:'营业日期',type:'decimal',width:60,align:'left'},
                     {field:'cardno',title:'卡号',type:'string',width:160,align:'left'},
                     {field:'member_name',title:'会员姓名',type:'string',width:200,align:'left'},
                     {field:'memberid',title:'会员编号',type:'string',width:220,require:true,align:'left'},
                     {field: 'type_func', title: '操作类型', type: 'string', width: 100, align: 'left', bind: { key: "member_type_func", data: [] } },
                     {field:'amount',title:'金额',type:'decimal',width:90,align:'left'},
                     {field:'presented_amount',title:'赠送金额',type:'decimal',width:90,align:'left'},
                     {field:'totalamount',title:'余额',type:'decimal',width:90,align:'left'},
                     {field:'remark',title:'备注',type:'string',width:90,align:'left'},
                     {field:'createDate',title:'操作时间',type:'datetime',width:160,align:'left',sortable:true},
                     {field:'creator',title:'操作人',type:'string',width:90,align:'left'},

        ],


              detail: {
                  cnName:"#detailCnName",
                  columns: [],
                  sortName: "",
                  key:""
              }
          };
      }
  };
  export default vueParam;
</script>
